﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ServiceModel.Web;
using System.ServiceModel;
using System.ServiceModel.Activation;

namespace Esb.TestRestful.Service
{
    [ServiceContract]
    [AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)]
    [ServiceBehavior(InstanceContextMode = InstanceContextMode.PerCall)]
    public class RestfulService1
    {
        [WebInvoke(UriTemplate = "Method1", Method = "POST")]
        public string Method1(string parm)
        {
            return parm + "...";
        }
    }
}